Welcome![Sign In][Sign Up]
Location:
Search - c code for pc to pc communication

Search list

[Com Port1lulu_5219068

Description: 串口通信,基于串口的PC机的通过MODEM收发短消息的代码-serial communication, the serial port on the PC through the modem Sending and Receiving Short Messages by the code.
Platform: | Size: 165888 | Author: | Hits:

[SCMstc232

Description: 1.通过PC端的串口调试工具,从PC端发出一个十六进制的数, 通过串口传输到单片机,并有单片机通过LED数码管显示其ASII码,而且单片机又将这个数发回PC端,并在PC端显示出来,从而实现单片机与PC机的通讯 2.可以实现对下位机数据实时采集(如温度,程序中设定的是37摄氏度) 3.可以控制流水灯或继电器开关等-1. Through the PC-side debugging tools for serial port, from the PC client sends a hexadecimal number, by serial transmission to the microcontroller, and a single-chip through the LED digital tube display its ASII code, but also single-chip microcomputer this number back to PC client, and displayed in the client PC in order to achieve single-chip microcomputer and PC-communication 2. can be achieved for the next bit of real-time machine data collection (such as temperature, the procedures set is 37 degrees C) 3. flowing water can be controlled such as lights or relay switch
Platform: | Size: 1024 | Author: 国庆 | Hits:

[SCMReader

Description: 基于at89s52的读mifare1卡c51源程序.单片机与rfid读卡模块yhy502相连。单片机与上位机通过串口进行通信,通信速率为19200bps。在PC端通过串口调试软件可以方便地对yhy502模块进行操作,完成读13.56mhz射频的功能。-AT89S52 based on the C51 card mifare1 read the source code. Singlechip with rfid reader module yhy502 connected. MCU and host computer through serial communication, communication rate of 19200bps. In the PC-side debugging software through the serial port can easily operate on yhy502 module, read 13.56mhz achieve RF functions.
Platform: | Size: 27648 | Author: Corf | Hits:

[SCMqzdmcu1

Description: 本单片机程序采用C语言代码对32只MODBUS电表进行电度量数据采集,存贮,并与后台PC机通信,交换数据.-The SCM program uses C language code on 32 meters for electricity MODBUS measurement data acquisition, storage, and communication with the PC, the background to exchange data.
Platform: | Size: 41984 | Author: qianzhidao | Hits:

[Com Portvb

Description: 串口通讯作为一种古老而又灵活的通讯方式,被广泛地应用于PC间的通讯以及PC和单片机之间的通讯之中。 提到串口通讯的编程,人们往往立刻想到C、汇编等对系统底层操作支持较好的编程语言以及大串繁琐的代码。-Serial communication as an ancient and flexible means of communication, is widely used in communication between the PC and the communication between PC and microcontroller into. Serial communication programming mentioned, people tend to immediately think of C, assembly, etc. on the underlying operating system, programming language support for better strings and large cumbersome code.
Platform: | Size: 8192 | Author: 刘晓生 | Hits:

[OS Developucore-lab1

Description: Ucore是一个很小的适于学习的操作系统,此“麻雀”包含虚存管理、进程管理、处理器调度、同步互斥、进程间通信、文件系统等主要内核功能,总的内核代码量(C+asm)不会超过5K行。充分体现了“小而全”的指导思想。 这是ucore的实验1:系统软件启动过程。实验目的:操作系统是一个软件,也需要通过某种机制加载并运行它。在这里我们将通过另外一个更加简单的软件-bootloader 来完成这些工作。为此,我们需要完成一个能够切换到x86 的保护模式并显示字符的bootloader,为将来启动操作系统做准备。proj1 提供了一个非常小的bootloader,整个bootloader 的大小小于512 个字节,这样才能放到硬盘的主引导扇区中。通过分析和实现这个bootloader,读者可以了解到:基于分段机制的存储管理、设备管理的基本概念、PC 启动bootloader 的过程、bootloader 的文件组成、编译运行bootloader 的过程、调试bootloader 的方法、在汇编级了解栈的结构和处理过程、中断处理机制、通过串口/并口/CGA 输出字符的方法。文件中包括源代码、实验指导书和实验报告。-Ucore is a small operating system for learning, the " Sparrow" contains the virtual memory management, process management, processor scheduling, synchronization mutually exclusive, inter-process communication, file system and other major kernel functions, the total amount of kernel code ( C+ asm) no more than 5K lines. Fully embodies the " small" the guiding ideology. This is ucore experiment 1: the system software boot process. Purpose: the operating system is a software, but also need some mechanism to load and run it. Here we will adopt another more simple software-bootloader to complete these tasks. To this end, we need to be able to complete a switch to the x86 protected mode and display the characters bootloader, the operating system to start to prepare for the future. proj1 provides a very small bootloader, the bootloader is less than 512 bytes in size, so as to put the hard disk master boot sector. Through the analysis and to achieve this bootloader, the read
Platform: | Size: 1725440 | Author: gyh | Hits:

[SCMUSART-PC-Proteus

Description: 用Proteus实现电脑和单片机串口通信的仿真,里面有C源程序和PROTUES仿真原理图,适合初学者参考学习。-Simulation of computer and single-chip serial communication using Proteus, there are C source code and PROTUES simulation diagram, suitable for beginners to learn the reference.
Platform: | Size: 15360 | Author: fenghai | Hits:

[Other Embeded programMicroStar1.1

Description: 最新版本MicroStar1.1不仅能支持按优先级调度,还支持时间片轮转调度和前二者相接合调度。   声明 代码未经严格测试,现仅作学习和交流用途,不得利用其作任何商业目的的开发。擅自使用之进行商业开发,所造成的后果由自已承担,本人不负任何法律上的责任。 使用需知 1. MicroStar1.0最多只能创建16个任务。最多可提供16个定时器。最多能直接提供16个同步对象,若要更多的同步对象,须自行分配内存。 2 为了使代码能在DOS下运行,不少函数声明和定义前都有_FAR宏,以使所有函数都可以通过在os_type.h中添删FAR_MODE宏来编译成远调函数还是近调函数。随演示程序提供的是在小模式下编译的obj文件,不必关心_FAR。 3 部分函数,结构体在DOS下必须使用 far 指针,移植时只需在os_type.h中添加一条-----#define far 4 此手册并不专对PC机编写,因而有些函数的原型与PC机源码不符,请读者注意。 5 调试版本中内核调用用户编写的os_WARNINGE 和 os_ASSERT校验函数,可参考演示程序中的other.c文件。出错类型和警告类型可在os_macro.h中查的。-Not only can support the latest version MicroStar1.1 by priority scheduling, also supports round-robin scheduling and dispatching former two engagement. Declaration code without strict testing, is solely for learning and communication purposes, not for any commercial purpose use of its development. Unauthorized use for commercial development, the consequences of the self-commitments, I assumes no legal responsibility. Using Notes 1. MicroStar1.0 can create a maximum 16 tasks. Provides up to 16 timers. Up to 16 synchronous object directly, to more synchronization objects at their own memory allocation. 2 To make the code can be run under DOS, and many function declarations and definitions have _FAR macro front, so that all functions are available through the os_type.h Sinostate delete FAR_MODE macros to compile near or far call function call function. With a demo program is compiled in a small model obj file, do not care _FAR. 3 partial function, the structure must be used unde
Platform: | Size: 236544 | Author: hugaoquan | Hits:

[Other Embeded programFREEMODBUS_FOR_stm32

Description: 为什么要移植Freemodbus,这个问题需要从两个方面来回答。第一,modbus是一个非常好的应用层协议,它很简洁也相对完善。对于还没有接触过modbus的朋友来说,我非常不建议直接移植freemodbus,应该耐心的从modbus文档入手,并充分把握身边的所有资源,例如PLC的中modbus部分。第二,其实嵌入式系统的通信协议可以自己制定,但是通过实践发现自己定制的协议漏洞百出,尤其是扩展极为困难。我始终认为借鉴他人的经验是很好的途径。借鉴他人成熟的代码,可以减少调试的时间,实现的功能也多了不少。 个人观点,仅供参考。 freemodbus小提示 freemodbus只能使用从机功能。freemodbus更适合嵌入式系统,虽然例子中也有WIN32的例子,如果想要做PC机程序并实现主机功能,推荐使用另一个modbus库——NMODBUS,使用C#开发。同样WINFORM也可以通过自己编写串口代码实现modbus功能,但是这会花费很长的时间,可能是一周也可能是一个月,如果使用现成的代码库,那么开发时间可能只有10分钟。-Why transplant Freemodbus, this issue needs to be answered in two ways . First , modbus is a very good application layer protocol , it is very simple and relatively perfect. For no contact with modbus friends, I do not recommend direct transplant freemodbus, the patient should start from modbus documents and take full advantage of all the resources around you , for example, part of the modbus PLC. Second, the fact communication protocol embedded systems can develop their own , but through practice found loopholes own custom protocols , especially the expansion is extremely difficult. I have always believed that draw on the experience of others is a good way . Learn from others mature code can reduce debugging time , functions are also a lot more . Personal point of view , for reference only . freemodbus Tips freemodbus only from the machine function . freemodbus more suitable for embedded systems, although there are examples of WIN32 example , if you want
Platform: | Size: 583680 | Author: zhangpan | Hits:

[Other Embeded programRS232

Description: Embeded C++ Code for PIC Microcontroller for CCS-C Compiler. This Code shoe how to make communication easly between PC And PIC16f877A Microcontrollrt via RS232. The file contain all source code and Proteus simulation files. Notice: Code developed by Serdar CICEK
Platform: | Size: 15360 | Author: Walat YACOUB | Hits:

[CSharpMultiple-Ships-Control

Description: 本源码为C#语言基于串口通信模式开发的一个控制多无人艇路径跟踪的上位机软件。界面提供实时路径轨迹显示、无人艇的开环和闭环控制。其中控制和轨迹绘图采用多线程完成。对于开发类似的上位机机人机交互界面具有较高的参考价值。-The source code for C# language serial communication control mode is based on the development of a multi-USV path tracking PC software. Interface provides real-time route track display, open-loop and closed-loop control of the unmanned boat. Wherein the control and track the use of multiple threads to complete the drawing. For the development of similar PC machine interactive interface with a high reference value.
Platform: | Size: 157696 | Author: liuhui | Hits:

[SCMGB_decode

Description: C代码编程,gcc编译,PC上运行。遵循《GB/T 27930-2015 电动汽车非车载传导式充电机与电池管理系统之间的通讯协议》,根据协议将截取到的CAN报文(一般是csv格式)解析成相应的文本,方便直观的排查故障。(C code programming, GCC compilation, running on PC. Following the "Communication Protocol between GB/T 27930-2015 Electric Vehicle Non-vehicle Conductive Charger and Battery Management System", the intercepted CAN message (usually in CSV format) is parsed into corresponding text according to the protocol, which is convenient for intuitive troubleshooting.)
Platform: | Size: 392192 | Author: sxp19880607 | Hits:

CodeBus www.codebus.net